﻿using System.Windows.Input;
using HelloWindowsPhoneMVC.Controllers;
using WindowsPhoneEssentials.Commands;
using WindowsPhoneMVC;

namespace HelloWindowsPhoneMVC.ViewModels.Another
{
    public class ExampleViewModel : ViewModelBase
    {
        public ExampleViewModel()
        {
            GoHome = new DelegateCommand(()=>Controller<HomeController>().NavigateBackTo("Main"));
            SaveCommand = Controller<AnotherController>().InvokeCommand(c => c.Save());
        }

        public ICommand GoHome { get; private set; }
        public ICommand SaveCommand { get; private set; }
    }
}